<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>直播间</title>

    <meta name="keywords" content="上金理财，股市，股票，黄金，白银，期货，外汇，理财，投资，行情，独家，在线直播，直播，直播室，直播间">
    <meta name="description"
          content="上金理财，中国最大，投资者交流，理财平台，券商分析师，民间投资高手，各路专家，为投资者提供全面、及时、到位的投资服务，并与高手一起把脉市场上投资理财产品，向你推荐，让你的财富实现更快、更安全的增值。">
    <link href="/center/favicon.ico" REL="shortcut icon"/>
    <link href="/room_files/reset.css" rel="stylesheet" type="text/css">
    <link href="/room_files/function.css" rel="stylesheet" type="text/css">
    <link href="/room_files/style.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/room_files/layer.css" id="layui_layer_skinlayercss">

    <link rel="stylesheet" type="text/css" href="/template/ue-content/templates/images/style.css"/>
    <link rel="stylesheet" type="text/css" href="/template/ue-content/templates/css/style.css"/>
    <script src="http://www.jq22.com/jquery/1.7.2/jquery.min.js"></script>
    <script language="javascript" src="/script/jquery.easing.min.js"></script>
    <script language="javascript" src="/script/custom.js"></script>

    <script src="/room_files/hm.js"></script>
    <script type="text/javascript" src="/room_files/jquery.min.js"></script>
    <script type="text/javascript" src="/room_files/layer.js"></script>
    <script type="text/javascript" src="/room_files/validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="/room_files/jquery.cookie.js"></script>
    <script type="text/javascript" src="/room_files/common.js"></script>

    <link href="/room_files/studio.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/room_files/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="/room_files/base64.js"></script>
    <script type="text/javascript" src="/room_files/md5.js"></script>
    <script type="text/javascript" src="/room_files/socket.io.js"></script>
    <script type="text/javascript" src="/room_files/message.js"></script>
    <link rel="stylesheet" href="/room_files/layer.ext.css" id="layui_layer_skinlayerextcss">


    <link href="/gotye/css/style.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/gotye/css/reset.css">
    <script src="/gotye/js/ejs.js"></script>
    <script src="/gotye/js/expression.js"></script>
    <script src="/gotye/js/util.js"></script>
    <script src="/gotye/js/winInit.js"></script>
    <script src="/gotye/js/hammer.min.js"></script>
    <script src="/gotye/js/jquery.hammer.js"></script>
    <script src="/gotye/js/model/chat.js"></script>
    <script src="/gotye/js/model/live.play.js"></script>

    <!--<script src="/room_files/labelauty.js"></script>-->
    <style>


        .rdolist, .chklist {
            display: none;
        }

        .rdobox, .chkbox {
            display: inline-block;
            padding: 7px;
            height: 16px;
            line-height: 16px;
            background: #eee;
            border-radius: 3px;
            color: #666;
            font-family: 'Microsoft YaHei';
        }

        .check-image {
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-top: -4px;
            background: url(/room_files/input-unchecked.png) no-repeat;
            vertical-align: middle;
        }

        .unchecked {
            background: #ECF0F1;
            color: #666;
            transition-property: background;
            transition-delay: 0s;
            transition-duration: .1s;
            transition-timing-function: linear;
        }

        .unchecked:hover {
            background: #dedfe0;
        }

        .checked {
            background: #3498DB;
            color: #fff;
        }

    </style>
</head>
<body class="bg-grey">
<div class="clear"></div>
<div class="loginmask"></div>
<div id="loginalert" style="top:50px;">
    <div class="pd20 loginpd">
        <h3>
            <i class="closealert fr"></i>
            <div class="clear"></div>
        </h3>
        <div class="loginwrap">
            <div class="loginh">
                <div class="fl">会员登录</div>
                <div class="fr">还没有账号<a id="sigup_now" href="/register/register.html">立即注册</a></div>
                <div class="clear"></div>
            </div>
            <h3>
                <span></span>
                <span class="login_warning">用户名或密码错误</span>
                <div class="clear"></div>
            </h3>
            <div class="clear"></div>
            <form id="sign">
                <div class="logininput">
                    <input type="text" name="mobile" class="loginusername" value="用户名"/>
                    <input type="text" class="loginuserpasswordt" value="密码"/>
                    <input type="password" name="password" class="loginuserpasswordp" style="display:none"/>
                </div>
                <div class="loginbtn">
                    <div class="loginsubmit fl">
                        <input type="button" id="loginBut" value="登录"/>
                        <div class="loginsubmiting">
                            <div class="loginsubmiting_inner"></div>
                        </div>
                    </div>
                    <div class="logcheckbox fl">
                        <!--<input id="bcdl" type="checkbox" checked="true" />

                        保持登录--></div>
                    <div class="fr"><a href="http://www.jq22.com/">忘记密码?</a></div>
                    <div class="clear"></div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return unescape(r[2]);
        return null; //返回参数值
    }
    var uuid = getUrlParam('index');
    var usid = getUrlParam('uid');

    var users = Tool.getCookie("users");

    $(function () {
        $(".rdolist").labelauty("rdolist");
        liveDetail();
        if (users == null) {
            $('#grzx').hide();
        } else {
            var obj = JSON.parse(users);
            var temp = JSON.parse(obj);
            $.ajax({
                type: "GET",
                url: "/user/" + temp.id + "/findOne",
                success: function (msg) {
                    if (msg.status == 200) {
                        $('#grzx').show();
                        $('#denglu').hide();
                        var nickname = msg.data.nickname;
                        $('#nicknameV').html(nickname);
                        if (msg.data.mobile == "admin") {
                            $('#dgzVal').html('<a href="/member/admin.html">个人管理中心</a>')
                        } else {
                            $('#dgzVal').html('<a href="/member/center.html">个人管理中心</a>')
                        }
                        if (msg.data.avatar != null) {
                            $("#avatar").attr('src', msg.data.avatar);
                        } else {
                            $("#avatar").attr('src', '/center/default-avatar.jpg');
                        }
                    } else {
                        $('#grzx').hide();
                    }
                },
                error: function (error) {
                    alert(error);
                }
            });
        }
        ;

        $.ajax({
            type: "GET",
            url: "/anchor/" + uuid + "/findOne",
            success: function (msg) {
                var nickname = msg.data.user.nickname;
                $('#yonghuming').html(nickname);
                $('#yonghuming1').html(nickname);
                $('#titleRoom').html(msg.data.roomName);
                $('#roomNo').html(msg.data.roomNo);
                if (msg.data.profile != null) {
                    $('#profile').html(msg.data.profile);
                } else {
                    $('#profile').html("暂无简介");
                }
                if (msg.data.totalProfit != null) {
                    $('#totalProfit').html(msg.data.totalProfit);
                }
                if (msg.data.totalRetreat != null) {
                    $('#totalLoss').html(msg.data.totalRetreat);
                }
                if (msg.data.totalWin != null) {
                    $('#totalWin').html(msg.data.totalWin);
                }
                if (msg.data.user.avatar != null) {
                    $("#touxiang").attr('src', msg.data.user.avatar);
                    $("#touxiang1").attr('src', msg.data.user.avatar);
                } else {
                    $("#touxiang").attr('src', '/center/default-avatar.jpg');
                    $("#touxiang1").attr('src', '/center/default-avatar.jpg');
                }
            },
            error: function (error) {
                alert(error);
            }
        });


        $('#loginBut').click(function () {
            $.ajax({
                type: "POST",
                url: "/user/sign",
                data: $('#sign').serialize(),// 要提交的表单
                success: function (msg) {
                    if (msg.status == 200) {
                        $('#grzx').show();
                        $('#denglu').hide();
                        $("#loginalert").hide();
                        $(".loginmask").hide();
                        Tool.setNickname('nickname', msg.data.nickname, null);
                        $('#nicknameV').html(msg.data.nickname);
                        if (msg.data.mobile == "admin") {
                            $('#dgzVal').html('<a href="/member/admin.html">个人管理中心</a>')
                        } else {
                            $('#dgzVal').html('<a href="/member/center.html">个人管理中心</a>')
                        }
                        if (msg.data.avatar != null) {
                            $("#avatar").attr('src', msg.data.avatar);
                            $("#touxiang").attr('src', msg.data.avatar);
                        } else {
                            $("#avatar").attr('src', '/center/default-avatar.jpg');
                            $("#touxiang").attr('src', '/center/default-avatar.jpg');
                        }
//                        document.location.reload();
                    }
                },
                error: function (error) {
                    alert(error);
                }
            });
        });

        $("#logoutId").click(function () {
            $.ajax({
                type: "GET",
                url: "/user/logout",
                success: function (msg) {
                    if (msg.status == 200) {
                        layer.msg("成功退出！", {
                            time: 1000
                        }, function () {
                            document.location.reload();
                        });
                    }
                },
                error: function(error){}
            });
        });
    });

    function liveDetail() {
        var sort = $('input:radio[name="rdo"]:checked').val();
        $.ajax({
            type: "GET",
            url: "/live/" + usid + "/exist",
//            data: {username:$("#username").val(), content:$("#content").val()},
            data: {sort: sort},
            dataType: "json",
            success: function (data) {
                $('#resText').empty();   //清空resText里面的所有内容
                var html = '';
                if (typeof(data.data) != "undefined"){
                    $.each(data.data, function (index, obj) {
                        html += '<div class="f-mt15 talk-item s-border-bot" data-id="' + index + '">' +
                                '<p>' +
                                '<span class="f-cl0 f-ff3 f-fs18 ctime">' + obj.createTime.substring(10) + '</span>' +
                                '</p>' +
                                '<div class="talk-item-txt">' +
                                '<div style=""><p>' + obj.content + '</p></div>' +
                                '</div>' +
                                '</div>';
                    });
                }else {
                    html = '<div>' +
                            '<img src="/room_files/LiveEnd.png" alt="" style="    float: left;margin-bottom: 60px;margin-left: 40px;margin-top: 120px">' +
                            '<p style="color: #999;float: left;font-size: 30px;line-height: 55px;margin-left: 20px; margin-top: 190px;">主播还在赶往直播室的路上，<br> 请稍后再来~</p>' +
                            '</div>';
                }
                $('#resText').html(html);
            }
        });
    }

    setInterval(function () {
        var sort = $('input:radio[name="rdo"]:checked').val();
        $.ajax({
            type: "GET",
            url: "/live/" + usid + "/exist",
            data: {sort: sort},
            dataType: "json",
            success: function (data) {
                $('#resText').empty();   //清空resText里面的所有内容
                var html = '';
                if (typeof(data.data) != "undefined"){
                    $.each(data.data, function (index, obj) {
                        html += '<div class="f-mt15 talk-item s-border-bot" data-id="' + index + '">' +
                                '<p>' +
                                '<span class="f-cl0 f-ff3 f-fs18 ctime">' + obj.createTime.substring(10) + '</span>' +
                                '</p>' +
                                '<div class="talk-item-txt">' +
                                '<div style=""><p>' + obj.content + '</p></div>' +
                                '</div>' +
                                '</div>';
                    });
                }else {
                    html = '<div>' +
                            '<img src="/room_files/LiveEnd.png" alt="" style="    float: left;margin-bottom: 60px;margin-left: 40px;margin-top: 120px">' +
                            '<p style="color: #999;float: left;font-size: 30px;line-height: 55px;margin-left: 20px; margin-top: 190px;">主播还在赶往直播室的路上，<br> 请稍后再来~</p>' +
                            '</div>';
                }
                $('#resText').html(html);
            }
        });
    }, 20000);
</script>

<div class="for-shadow"></div><!-- shadow-bg-->
<div class="studio-header f-cb">
    <div class="f-fl f-cb s-nav f-ml20">
        <div class="s-logo f-mt10 f-fl">
            <img align="" src="/index/foot-logo.png" style="background-color: #bf8c43;">
        </div>
        <ul class="f-fl">
            <li><a href="/index.html">首页</a></li>
        </ul>
    </div>
    <div class="f-fr f-cb f-mr20 f-fs12">
        <ul class="f-fl">
            <!--<li><a href="" target="_blank">帮助中心</a></li>-->
        </ul>
        <p class="f-fl">
            客服电话：<span class="f-fs16">400-1088-197</span>
        </p>
        <div class="s-user-header f-ml20 f-fl" id="denglu">
            <p class="f-fl">
                <a class="openlogin" href="" onclick="return false;">登录</a>
                <a class="reg" href="/register/register.html">注册</a>
            </p>
        </div>
        <div class="s-user-header f-ml20 f-fl" id="grzx">
            <img class="f-fl f-mr10" id="avatar" alt="" src="/center/default-avatar.jpg">
            <p class="f-fl">
                <a><span id="nicknameV"></span></a>
            </p>
            <div class="user-more-icon">
                <i></i>
                <div class="f-fs14 f-cl9 user-more">
                    <ul>
                        <li id="dgzVal"></li>
                        <li><a href="" id="logoutId">退出</a></li>
                    </ul>
                </div>
            </div>
        </div>

    </div>
</div>
<div class="studio-banner">
    <div class="f-cb s-banner-mid">
        <div class="f-cb toggle-show-box" style="display: block;">
            <div class="f-fl f-cb">
                <div class="f-fl t-pic">
                    <img id="touxiang" src="/center/default-avatar.jpg">
                </div>
                <div class="f-fl f-ml30 s-t-brief">
                    <div class="f-cb">
                        <span class="f-fl f-fs28" style="width: 250px;position: relative;top: -8px;"
                              id="yonghuming"></span>
                        <div class="f-fr">
                            <a class="u-btn focus-btn" data-sid="31" title="开发中，敬请期待" disabled="disabled">+ 关注</a>
                            <a class="u-btn ask-btn pop-windows" popsize="500px*200px" href="javascript:void(0);" title="向 老师 提问" _href="javascript:void(0);">？ 提问</a>
                            <!--<a class="u-btn ask-btn pop-windows" popsize="500px*200px" href="javascript:void(0);" title="开发中，敬请期待" _href="">提问</a>-->
                        </div>
                    </div>
                    <p class="num-list f-mt10">直播房间号：<span id="roomNo"></span></p>
                    <span class="f-mt15 t-brief-con f-fs12" id="profile"></span>
                </div>
            </div>
            <div class="f-fr f-cb">
                <div class="f-fl progress-box1">
                    <div class="pro-bot">
                        <p class="f-fs12">累计收益
                        </p>
                        <p class="f-fs32 f-ff3 f-mt20  f-cl-profit "><span id="totalProfit" style="margin-left: -5px;">00.00</span><span
                                class="f-fs26">%</span></p>
                    </div>
                    <!--<p class="f-mt20">第2名</p>-->
                </div>
                <div class="f-fl progress-box2">
                    <div class="pro-bot">
                        <p class="f-fs12">
                            最大回撤
                            <span class="comp-hover gucomp-hover" style="z-index: 2;">
                                <i class="for-hover f-ml10"></i>
                                <span class="time-tip zdhc-time-tip">
                                    <i class="traingle-hover zdhc-traingle-hover"></i>
                                    <span class="hover-text zdhc-hover-text">收益从最高点到最低点的回落比例，回撤值越接近0越稳定。
                                    </span>
                                </span>
                            </span>
                        </p>
                        <p class="f-fs32 f-ff3 f-mt20  f-cl-loss"><span id="totalLoss">00.00</span><span class="f-fs26">%</span>
                        </p>
                    </div>
                    <!--<p class="f-mt20">第14名</p>-->
                </div>
                <div class="f-fl progress-box3">
                    <div class="pro-bot">
                        <p class="f-fs12 f-tac">胜率
                            <span class="comp-hover gucomp-hover" style="z-index: 1;">
                                <i class="for-hover f-ml10"></i>
                                <span class="time-tip zdhc-time-tip">
                                    <i class="traingle-hover zdhc-traingle-hover"></i>
                                    <span class="hover-text zdhc-hover-text">盈利天数与操盘总天数的比值。
                                    </span>
                                </span>
                            </span>
                        </p>
                        <p class="f-fs32 f-tac f-ff3 f-mt20  f-cl-profit "><span id="totalWin">00.00</span><span
                                class="f-fs26">%</span></p>
                    </div>
                    <!--<p class="f-mt20 f-tac">第33名</p>-->
                </div>
            </div>
        </div>
        <p class="f-tar f-mt10 toggle-show"><i class="toggle-show-icon"
                                               style="background-position: -184px 0px;"></i><span>收起</span></p>
    </div>
</div>
<script>

    $(function () {
//        限制老师介绍的字数
        $(".t-brief-con").each(function () {
            var maxwidth = 66;
            if ($(this).text().length > maxwidth) {
                $(this).text($(this).text().substring(0, maxwidth));
                $(this).html($(this).html() + '...');
            }
        });

//        banner收起展开
        $('.toggle-show').on('click', function () {
            var order = $(this).find('span').text();
            $('.toggle-show-box').slideToggle();
            $.cookie('toggle-show', order);
            if (order == "收起") {
                $(this).find('span').text('展开');
                $('.toggle-show-icon').css('backgroundPosition', '-168px 0');
                $('.short-show').css('display', 'block');
            }
            if (order == "展开") {
                $(this).find('span').text('收起');
                $('.toggle-show-icon').css('backgroundPosition', '-184px 0');
                $('.short-show').css('display', 'none');
            }
        });
        var toggleshow = $.cookie('toggle-show');
        if (toggleshow == '收起') {
            $('.toggle-show-box').slideToggle();
            $('.toggle-show').find('span').text('展开');
            $('.toggle-show-icon').css('backgroundPosition', '-168px 0');
            $('.short-show').css('display', 'block');
        }
//        全屏非全屏
        $('.full-screen').on('click', function () {
            if ($('.toggle-show span').text() == '收起') {
                $('.toggle-show').trigger("click");
            }
            $.cookie('full-screen', $('.s-main-mid').hasClass('s-main-mid-screen'));
//            $('.short-show').css('display','block');
            $('.s-main-mid').toggleClass('s-main-mid-screen');
            $('.for-shadow').toggleClass('shadow-bg');
            if ($('.for-shadow').hasClass('shadow-bg')) {
                $('.full-screen').addClass('after-full-screen');
            }
            else {
                $('.full-screen').removeClass('after-full-screen');
            }
        });
        var fullscreen = $.cookie('full-screen');
        if (fullscreen == 'false') {
            $('.s-main-mid').toggleClass('s-main-mid-screen');
            $('.for-shadow').toggleClass('shadow-bg');
        }
//        提问弹窗
//        $('.no').click(function(){
//            layer.open({
//                type: 1,
//                title: false,
//                offset:100,
//                shade:false,
//                title:"<div class='layer-video-title layer-ask-title f-cb f-fs18'><i class=''></i>向<em class='f-cl1 f-fwn' id=''>至柔若水</em>提问</p></div>",
//                area: ['670px', '370px'],
//                content: "<form method='post'><div class='layer-video layer-ask'>" +
//                "<textarea class='layer-limit-txt' onkeyup='pressLayer()' onmousedown='pressLayer()' placeholder='别着急，试着清晰、详尽地描述您的问题，这样老师才能够更准确、更高质量的为您解答~'></textarea>" +
//                "<p class='f-tar f-mr30'>还可以输入<span class='f-ff3 f-fs18 f-fwb layer-limit-num'>120</span>字</p>" +
//                "<p class='f-cb f-ml30 f-mr30 ask-send-bar'><span class='f-fl'>我们会将您的问题立即推送给老师</span><a class='f-fr u-btn layer-ask-btn' onclick='checkAsk()'>提交</a></p>" +
//                "</div></form>"
//            });
//        });
    });
    //    剩余可输入字数实时提示
    function pressLayer() {
        var maxNum = 120;
        var remainTxtLen = $('.layer-limit-txt').val().length;
        var remainNum = maxNum - remainTxtLen;
        $('.layer-limit-num').text(remainNum);
    }
    //    提交按钮判空、判溢
    function checkAsk() {
        var remainTxtLen = $.trim($('.layer-limit-txt').val()).length;
        if (remainTxtLen <= 0) {
            layer.msg('提交内容不能为空！');
        }
        if (remainTxtLen > 120) {
            layer.msg('提问字数不能超过120字，请用简洁的语句描述~');
        }
    }


</script>
<div class="studio-main">
    <div class="s-main-mid"><!-- s-main-mid-screen-->
        <div class="s-tab-box f-cb">
            <ul class="f-fl">
                <li class="cur"><span style="color: red; font-size: 18px;">直播</span></li>
                <li style="margin-left: 0px;">
                    <div class="rdo">
                        <input type="radio" name="rdo" class="rdolist" checked="checked" value="0"/>
                        <label class="rdobox">
                            <span class="check-image"></span>
                            <span class="radiobox-content" style="font-size: 10px;">正序</span>
                        </label>
                        <input type="radio" name="rdo" class="rdolist" value="1"/>
                        <label class="rdobox">
                            <span class="check-image"></span>
                            <span class="radiobox-content" style="font-size: 10px;">倒序</span>
                        </label>
                    </div>
                </li>
                <li>
                    <span style="color: #333; font-weight: bold;" id="titleRoom" title="今日主题"></span>
                </li>
            </ul>
            <div class="f-fr f-cb">
                <div class="f-fl f-cb short-show" style="display: none;">
                    <div class="f-fl t-slide-pic">
                        <img id="touxiang1" src="/center/default-avatar.jpg">
                    </div>
                    <span class="f-fl f-cl8 f-ml10" id="yonghuming1"></span>
                    <a class="f-fl f-mt10 u-btn ask-btn" popsize="500px*200px" href="javascript:void(0);"
                       title="开发中，敬请期待" _href="" disabled='ture'>提问</a>
                    <!--<a class="f-fl f-mt10 u-btn ask-btn pop-windows" popsize="500px*200px" href="javascript:void(0);" title="问 老师提问" _href="">提问</a>-->
                </div>
                <span class="full-screen f-ml20"></span>
            </div>

        </div>

        <div class="studio-talk f-cb">
            <!--观点区-->
            <div class="view-zone">
                <div style="margin: 20px 0px;" id="resText">

                </div>
            </div>
            <div class="template view-zone-template">
                <!--观点系统标签-->
                <div class="template-view-text-systag">
                    <span class="tag f-ml5">系统消息</span>
                </div>

                <!-- 观点项 -->
                <div class="template-view-text">
                    <div class="f-mt15 talk-item s-border-bot" data-id="[view_id]">
                        <p>
                            <span class="f-cl0 f-ff3 f-fs18 ctime">[ctime]</span>
                            [systag]
                        </p>
                        <div class="talk-item-txt">
                            [content]
                        </div>
                    </div>
                </div>


                <!-- 系统公告 -->
                <div class="template-view-text-o">
                    <div class="f-mt15 talk-item s-border-bot" data-id="[view_id]">
                        <p>
                            <span class="f-cl0 f-ff3 f-fs18 ctime">[ctime]</span>
                            [systag]
                        </p>
                        <div class="talk-item-txt studio-grey-tip">
                            [content]
                        </div>
                    </div>
                </div>

                <!-- 历史消息 - 横线提示 -->
                <div class="template-view-text-h">
                    <div class="history-line">
                        <hr>
                        <span class="f-fs12 f-cl8">以上是历史消息</span>
                    </div>
                </div>
            </div>

            <!--消息设置区-->
            <div class="view-set-zone">
                <span class="f-fl f-cl7" style="margin-right: 210px;">显示模式：<i class="full-screen f-mr10"></i></span>
                <div class="f-fl f-cb f-cl8">
                    <span class="f-cl7 f-fl">字号：</span>
                    <p class="font-size f-fl">
                        <span>大</span>
                        <span class="cur">中</span>
                        <span>小</span>
                    </p>
                </div>
                <div class="f-fr">
                    <span class="f-cl7">刷新：<a href="javascript:void(0)" onclick="liveDetail();"><img src="/center/refresh.png" style="height: 22px; width: 25px;"></a></span><i
                        class="sound-icon" id="sound"></i>
                    <audio id="myAudio" controls="controls" preload="auto" style="display: none">
                        <source src="http://static.91fool.com.cn/www/img/sound/tip.mp3" type="audio/mp3">
                        <source src="http://static.91fool.com.cn/www/img/sound/tip.wav" type="audio/wav">
                    </audio>
                </div>
            </div>

            <script>
                $(function () {
                    $('.font-size span').on('click', function () {
                        $(this).addClass('cur').siblings().removeClass('cur');
                        if ($(this).text() == '大') {
                            $('.talk-item-txt').css({
                                'fontSize': '18px',
//                    'lineHeight':'28px'
                            });
                        }
                        if ($(this).text() == '中') {
                            $('.talk-item-txt').css({
                                'fontSize': '16px',
//                    'lineHeight':'26px'
                            });
                        }
                        if ($(this).text() == '小') {
                            $('.talk-item-txt').css({
                                'fontSize': '14px',
//                    'lineHeight':'23px'
                            });
                        }
                    });

                });
            </script>

            <!-- 聊天区 -->
            <div class="chat-zone">
                <div style="margin: 20px 0px;">

                    <div data-role="page" id="pageone" class="container" style="max-width:640px;margin:auto;">
                        <div class="chat-plate">
                            <div class="tabs" id="activity_tab">
                                <ul class="display-box fastclick">
                                    <li class="flex chatLi active" data-tab="infor-tab10">
                                        <a href="javascript:void(0);">互动消息</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="system_messages display-box" id="sys_msg">
                                <div>
                                    <i></i>
                                    <em class="line"></em>
                                </div>
                                <p class="flex"><span class="">欢迎大家参加本次直播活动！</span></p>
                            </div>
                            <!--私聊-->
                            <div class="nomine_tips" id="private_msg"></div>
                            <div id="private_chat_box">
                                <div class="private_chat_c">
                                    <div class="private_name display-box">
                                        <p class="flex">与“<span id="priavteName">Jean</span>”私聊中</p>
                                        <a>
                                            <i></i>
                                        </a>
                                    </div>
                                    <div class="private_chat allow-roll">
                                        <ul class="msg-list chat" id="private_chat">
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="chatBox" style="padding-top:37px;">
                                <div id="tabs-container" class="swiper-container">
                                    <div class="swiper-wrapper" id="content1">
                                        <!-- 聊天 -->
                                        <section class="msg-chat swiper-slide show" id="infor-tab10">
                                            <div class="showgift" id="showgift"></div>
                                            <ul class="msg-list chat allow-roll" id="msg-chat-list"
                                                style="height: 498px; border-bottom: 1px solid #ddd;">
                                            </ul>
                                        </section>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <script type="tmpl" id="temp_text_enter_event">
				<li class="system_msg">
                      <a class="leftHead" href="javascript:void(0);"><img src="/gotye/images/system_img.png"></a>
                      <div class="leftChat">
                      <i></i>
                      <p><span class="name">系统消息:</span>欢迎<font>"<&=data.sendName&>"</font>进入频道</p>
                      </div>
                  	  <div class="clearfix"></div>
                </li>

                    </script>
                    <!-- 通知  -->
                    <script type="tmpl" id="temp_text_notify">
			<li class="system_msg">
                <a class="leftHead" href="javascript:void(0);"><img src="/gotye/images/system_img.png"></a>
                <div class="leftChat">
                <i></i>
                <p><span class="name">系统消息:</span><&=data.content&></p>
                </div>
                <div class="clearfix"></div>
              </li>

                    </script>

                    <script type="tmpl" id="temp_text_fail_event">
				<li class="reward">
                    <p>
                         消息 "<&=data.text&>" 发送失败
                    </p>
                </li>

                    </script>

                    <!-- 日志模板  -->
                    <script type="tmpl" id="temp_text_log">
				<li class="reward">
                      <p style="color:red;">
                     	<&=data.text&>
                      </p>
               </li>

                    </script>

                    <!-- 礼物显示模板  -->
                    <script type="tmpl" id="temp_gift">
                <div style="vertical-align: top; float:left;">
                <& for(var i=0,tl = list.length,tr;i < tl;i++){ &>
       				 <& tr = list[i]; &>
					<dd onclick="showPayGift(<&=tr.giftId&>,'<&=tr.giftName&>','<&=tr.giftPrice&>','<&=tr.giftPicUrl&>');">
						<img src="<&=tr.giftPicUrl&>" ><span class="diamond"><&if(tr.giftPrice==0){&>免费<&}else{&><i></i><&=tr.giftPrice&> <&}&> </span></dd>
					</dd>
 				<& } &>
                 </div>

                    </script>

                    <!-- 礼物 消息模板  -->
                    <script type="tmpl" id="temp_gift_msg">
				<li class="system_msg">
                     <a class="leftHead" href="javascript:void(0);"><img src="/gotye/images/system_img.png"></a>
                     <div class="leftChat">
                     <i></i>
                     <p><span class="name">系统消息:</span><font><&=data.sendName&></font>送了<img src="<&=data.giftPicUrl&>"></p>
                     </div>
                     <div class="clearfix"></div>
                 </li>

                    </script>
                    <!-- 消息模板 -->
                    <script type="tmpl" id="temp_text_msg">
				<&if(data.isSelf){&>
					<li class="privatechat">
				<&}else{&>
					<li class="privatechat" data-sendId="<&=data.sendId?data.sendId:data.account&>" data-sendName="<&=data.sendName?data.sendName:data.nickName&>" onclick="chat.loadPrivateChat(this);">
				<&}&>
                    <a class="leftHead" href="javascript:void(0);"><&if(data.headUrl){&><img src="<&=data.headUrl&>"/><&}else{&><img src="/gotye/images/hd_img.png" /><&}&></a>
                          <div class="leftChat">
                              <i></i>
                              <p>
								<&if(data.role==2||data.role==3){&>
									<span class="name" style="color:#3dc379">
								<&}else{&>
									<span class="name">
								<&}&>
								<&if(data.sendNameShow){&>
									<&=data.sendNameShow&>
								<&}else if(data.sendName){&>
									<&=data.sendName&>
								<&}else{&>
									<&=data.nickName&>
								<&}&>
								<&if(data.role==2){&>
									(主播)
								  	<&}else if(data.role==3){&>
									 (助理)
								  	<&}&>:
								</span><&=data.text&></p>
                           </div>
                    <div class="clearfix"></div>
                 </li>

                    </script>
                    <script type="tmpl" id="temp_activity_tab">
				<li class='<&if(data.tagType == 1){&>flex chatLi<&}else{&> flex<&}&>' data-tab="infor-tab<&=data.index&>">
				   <a href="javascript:void(0);">
                        <&=data.title&>
                   </a>
				</li>

                    </script>
                    <script type="text/javascript">
                        var token_key = Tool.getCookie("token_key");
                        var token = Tool.getCookie(token_key);
                        var roomId = Tool.getCookie("roomId");
                        var room = Tool.getCookie("room");
                        var chat;
                        $(function () {
                            if (room) {
                                chat = new Gotye.Chat(token);//聊天
                            } else {
                                Tool.log("room is empty!");
                            }
                        });
                    </script>

                    <!--<iframe id=""> </iframe>-->
                </div>
            </div>

            <!-- 送礼发评论 -->
            <div class="chat-send-zone">
                <div class="scroll-shadow" style="display: none;"></div>
                <div class="chat-text-zone"><!-- class="f-mt10"-->
                    <!--<textarea class="chat-text" placeholder="来聊几句~" id="room_talk_post"></textarea>-->
                    <nav id="chat">
                        <div class="display-box">
                            <div class="chat-input flex border-box">
                                <div class="face_div"><a class="smilebtn" id="facebtn" href="javascript:void(0);"></a>
                                </div>
                                <div id="chat_div" class="chattxt" contenteditable="true"></div>
                                <div class="send_div"><a class="sendbtn" id="sendbtn">发送</a></div>
                            </div>
                            <!--<a class="u-btn f-mr10 f-ml20 chat-btn" id="room_talk_post_ok">发送</a>-->
                            <a id="giftbtn" class="gift-icon" href="javascript:void(0);"></a>
                        </div>

                        <div id="expressionBox" style="display:none;">
                            <ul>
                            </ul>
                        </div>
                        <div id="giftBox" style="">
                            <p>礼品区</p>
                            <div class="page_emotion box_swipe" id="page_emotion">
                                <dl id="list_emotion" class="list_emotion pt_10"
                                    style="list-style: none; transition-duration: 500ms; transform: translate3d(0px, 0px, 0px);">
                                    <div style="vertical-align: top; float: left; width: 375px;">
                                        <dd data-name="小花" data-price='0' data-src="/gotye/images/gift/gift_5.png">
                                            <img src="/gotye/images/gift/gift_5.png"><span
                                                class="diamond"><i></i>免费</span>
                                        </dd>
                                        <dd data-name="手捧花" data-price='0' data-src="/gotye/images/gift/gift_3.png">
                                            <img src="/gotye/images/gift/gift_3.png"><span
                                                class="diamond"><i></i>免费</span>
                                        </dd>
                                        <dd data-name="砖石" data-price='0' data-src="/gotye/images/gift/gift_2.png">
                                            <img src="/gotye/images/gift/gift_2.png"><span
                                                class="diamond"><i></i>免费</span>
                                        </dd>
                                    </div>
                                </dl><!-- 礼物框 -->
                                <dt>
                                <ol id="nav_emotion" class="nav_emotion">
                                    <!--<span class="on"></span>-->
                                </ol>
                                </dt>
                            </div>
                        </div>
                    </nav>
                    <div class="f-cb">
                        <span class="f-fl f-ml10 f-mt5 expression-icon"></span>
                        <!--<p class="f-fr">
                            <span class="post-editor-title"><input type="hidden" id="reply_user_nickname" value=""><input type="hidden" id="reply_chat_id" value="0"></span>
                            <span class="f-cl11 f-fs12">按下ctrl+enter键发送</span>
                            <a class="u-btn f-mr10 f-ml20 chat-btn" id="room_talk_post_ok">发送</a>
                        </p>-->
                        <div class="qq-face">
                            <span class="triangle-down"></span>
                            <div style="height: 155px;overflow: auto;">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="my-footer f-cb" style="border-top: 1px #999 solid; width: 1090px; margin: 0 auto;">
    <div style="font-size:14px;text-align:center">@2016-2017 版权所有 牛牛直播,最专业的财经直播&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客服电话：400-1088-197</div>
</div>
<div style="background: #fff;">
    <div class="g-doc f-tac my-bottom">
        <span>权威机构安全认证</span>
        <a href="javascript:void(0)" target="_blank">
            <img src="/index/report2.jpg" alt="不良信息举报中心">
        </a>
        <a href="javascript:void(0)" target="_blank">
            <img src="/index/report3.jpg" alt="360网站安全检测">
        </a>
        <a href="javascript:void(0)" target="_blank">
            <img src="/index/report4.jpg" alt="网信认证">
        </a>
        <a href="javascript:void(0)" target="_blank">
            <img src="/index/report5.jpg" alt="诚信网站">
        </a>
    </div>
</div>

<script type="text/javascript" src="/room_files/room_user.js"></script>
<script>

    (function ($) {
        $.fn.labelauty = function (tag) {

            //判断是否选中
            rdochecked(tag);

            //单选
            $(".rdobox").click(function () {
                $(this).prev().prop("checked", "checked");
                rdochecked("rdolist");
                liveDetail();
            });

            //判断是否选中
            function rdochecked(tag) {
                $('.' + tag).each(function (i) {
                    var rdobox = $('.' + tag).eq(i).next();
                    if ($('.' + tag).eq(i).prop("checked") == false) {
                        rdobox.removeClass("checked");
                        rdobox.addClass("unchecked");
                        rdobox.find(".check-image").css("background", "url(/room_files/input-unchecked.png)");
                    }
                    else {
                        rdobox.removeClass("unchecked");
                        rdobox.addClass("checked");
                        rdobox.find(".check-image").css("background", "url(/room_files/input-checked.png)");
                    }
                });
            }
        }
    }(jQuery));
</script>
</body>
</html>